package top.hymsk.ecommerce.utils;

import java.text.SimpleDateFormat;

/**
 * @author 花于陌上开
 */
public class TimeUtils {
    static SimpleDateFormat SDF=new SimpleDateFormat("yyyy年MM月dd日 HH:mm:ss");

    public static String  formatTime(long time){
        return SDF.format(time*1000);
    }

    public static Long getTime(){
        return System.currentTimeMillis()/1000;
    }
}
